import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'login',
    component: () => import( '../views/Login/LoginView.vue')
  },
  {
    path: '/index',
    name: 'index',
    component: () => import( '../views/Page/IndexView.vue'),
    children:[
      {
        path:'/index/feedBackManage',
        component: () => import( '../views/Page/FeedBack/FeedBackManage.vue')
      },
      {
        path:'/index/usersManage',
        component: () => import( '../views/Page/Users/UsersManage.vue')
      },
      {
        path:'/index/userInfo',
        component: () => import( '../views/Page/Users/UsersInfo.vue')
      },
      {
        path:'/index/landManage',
        component: () => import( '../views/Page/Land/LandManage.vue')
      },
      {
        path:'/index/landInfo',
        component: () => import( '../views/Page/Land/LandInfo.vue')
      },
      {
        path:'/index/AssetsInfo',
        component: () => import( '../views/Page/Assets/AssetsInfo.vue')
      },
      {
        path:'/index/AssetsManage',
        component: () => import( '../views/Page/Assets/AssetsManage.vue')
      },
      {
        path:'/index/CostsManage',
        component: () => import( '../views/Page/Costs/CostsManage.vue')
      },
      {
        path:'/index/CostsInfo',
        component: () => import( '../views/Page/Costs/CostsInfo.vue')
      },
      {
        path:'/index/RevenueManage',
        component: () => import( '../views/Page/Revenue/RevenueManage.vue')
      },
      {
        path:'/index/RevenueInfo',
        component: () => import( '../views/Page/Revenue/RevenueInfo.vue')
      },
      {
        path:'/index/DistributionRuleManage',
        component: () => import( '../views/Page/Distribution/DistributionRuleManage.vue')
      },
      {
        path:'/index/DistributionRecordsInfo',
        component: () => import( '../views/Page/Distribution/DistributionRecordsInfo.vue')
      },
      {
        path:'/index/CostAndRevenue',
        component: () => import( '../views/Page/Analysis/CostAndRevenue.vue')
      },
    ]

  },
  {
    path: '/investor',
    name: 'investor',
    component: () => import( '../views/Page/InvestorView.vue'),
    children:[
      {
        path:'/investor/feedbackInfo',
        component: () => import( '../views/Page/FeedBack/FeedBackInfo.vue')
      },
      {
        path:'/investor/userInfo',
        component: () => import( '../views/Page/Users/UsersInfo.vue')
      },
      {
        path:'/investor/landInfo',
        component: () => import( '../views/Page/Land/LandInfo.vue')
      },
      {
        path:'/investor/AssetsInfo',
        component: () => import( '../views/Page/Assets/AssetsInfo.vue')
      },
      {
        path:'/investor/CostsInfo',
        component: () => import( '../views/Page/Costs/CostsShow.vue')
      },
      {
        path:'/investor/RevenueInfo',
        component: () => import( '../views/Page/Revenue/RevenueShow.vue')
      },
      {
        path:'/investor/DistributionRecordsInfo',
        component: () => import( '../views/Page/Distribution/DistributionRecordsInfo.vue')
      },
      {
        path:'/investor/CostAndRevenue',
        component: () => import( '../views/Page/Analysis/CostAndRevenue.vue')
      },
    ]

  },
  {
    path: '/farmer',
    name: 'farmer',
    component: () => import( '../views/Page/FarmerView.vue'),
    children:[
      {
        path:'/farmer/feedbackInfo',
        component: () => import( '../views/Page/FeedBack/FeedBackInfo.vue')
      },
      {
        path:'/farmer/userInfo',
        component: () => import( '../views/Page/Users/UsersInfo.vue')
      },
      {
        path:'/farmer/landManage',
        component: () => import( '../views/Page/Land/LandManage.vue')
      },
      {
        path:'/farmer/AssetsManage',
        component: () => import( '../views/Page/Assets/AssetsManage.vue')
      },
      {
        path:'/farmer/CostsInfo',
        component: () => import( '../views/Page/Costs/CostsInfo.vue')
      },
      {
        path:'/farmer/RevenueInfo',
        component: () => import( '../views/Page/Revenue/RevenueInfo.vue')
      },
      {
        path:'/farmer/DistributionRecordsInfo',
        component: () => import( '../views/Page/Distribution/DistributionRecordsInfo.vue')
      }
    ]

  },
  {
    path: '/auditor',
    name: 'auditor',
    component: () => import( '../views/Page/AuditorView.vue'),
    children:[
      {
        path:'/auditor/feedbackInfo',
        component: () => import( '../views/Page/FeedBack/FeedBackInfo.vue')
      },
      {
        path:'/auditor/userInfo',
        component: () => import( '../views/Page/Users/UsersInfo.vue')
      },
      {
        path:'/auditor/landInfo',
        component: () => import( '../views/Page/Land/LandInfo.vue')
      },
      {
        path:'/auditor/AssetsInfo',
        component: () => import( '../views/Page/Assets/AssetsInfo.vue')
      },
      {
        path:'/auditor/CostsAuditor',
        component: () => import( '../views/Page/Costs/CostAuditor.vue')
      },
      {
        path:'/auditor/RevenueAuditor',
        component: () => import( '../views/Page/Revenue/RevenueAuditor.vue')
      },
      {
        path:'/auditor/DistributionRecordsInfo',
        component: () => import( '../views/Page/Distribution/DistributionRecordsInfo.vue')
      },
      {
        path:'/auditor/CostAndRevenue',
        component: () => import( '../views/Page/Analysis/CostAndRevenue.vue')
      },
    ]

  }
]

const router = new VueRouter({
  routes
})

export default router
